package edu.ustc.iproject.action.admin;
//1234
import com.opensymphony.xwork2.ActionSupport;
import java.util.List;
import java.util.Map;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

import edu.ustc.iproject.bean.Admin;
import edu.ustc.iproject.service.AdminService;

public class deleteAdmin extends ActionSupport {
	
	private Admin admin;
	
	public Admin getAdmin() {
		return admin;
	}

	public void setAdmin(Admin student) {
		this.admin = student;
	}

	private AdminService service;
		
	public AdminService getService() {
		return service;
	}

	public void setService(AdminService service) {
		this.service = service;
	}

	@Override
	public String execute() throws Exception
	{
		System.out.println("deletestudent1 Id():"+admin.getId());
		
		this.service.deleteAdmin(admin);
		
		System.out.println("deleteadmin2");
		
		return SUCCESS;
	}

}
